package com.example.ibsp_demo.pojo.entity.message;

import java.time.LocalDateTime;

/**
 * 关注提醒实体类
 * 对应数据库表 follow_relation
 */
public class FollowNotification {
    private Integer notificationId;
    private Integer followerId;      // 关注者ID
    private Integer followedId;      // 被关注者ID
    private String followerName; // 关注者名称
    private String followerAvatar; // 关注者头像
    private LocalDateTime followTime; // 关注时间
    private Boolean isRead;      // 是否已读

    public FollowNotification() {
    }

    public FollowNotification(int notificationId, int followerId, int followedId,
                              String followerName, String followerAvatar,
                              LocalDateTime followTime, boolean isRead) {
        this.notificationId = notificationId;
        this.followerId = followerId;
        this.followedId = followedId;
        this.followerName = followerName;
        this.followerAvatar = followerAvatar;
        this.followTime = followTime;
        this.isRead = isRead;
    }

    // Getters and Setters
    public int getNotificationId() {
        return notificationId;
    }

    public void setNotificationId(int notificationId) {
        this.notificationId = notificationId;
    }

    public int getFollowerId() {
        return followerId;
    }

    public void setFollowerId(int followerId) {
        this.followerId = followerId;
    }

    public int getFollowedId() {
        return followedId;
    }

    public void setFollowedId(int followedId) {
        this.followedId = followedId;
    }

    public String getFollowerName() {
        return followerName;
    }

    public void setFollowerName(String followerName) {
        this.followerName = followerName;
    }

    public String getFollowerAvatar() {
        return followerAvatar;
    }

    public void setFollowerAvatar(String followerAvatar) {
        this.followerAvatar = followerAvatar;
    }

    public LocalDateTime getFollowTime() {
        return followTime;
    }

    public void setFollowTime(LocalDateTime followTime) {
        this.followTime = followTime;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }


    @Override
    public String toString() {
        return "FollowNotification{" +
                "notificationId=" + notificationId +
                ", followerId=" + followerId +
                ", followedId=" + followedId +
                ", followerName='" + followerName + '\'' +
                ", followerAvatar='" + followerAvatar + '\'' +
                ", followTime=" + followTime +
                ", isRead=" + isRead +
                '}';
    }
}
